package multithread.framework.threadmethod;

import java.util.List;


public interface IThreadMethodChecker {
	/**
	 * Parameter <code>threadMethod</code> belongs to a group.<p>
	 * List: <code>threadMethods</code> contains all the ThreadMethods that have a <code>ThreadGroupFor</code> annotation.
	 * <p>here we should check if <code>threadMethod</code> already been contained in this <code>threadMethods</code>. <p>
	 * if already contained, that means: <p>
	 * eg. method1 belongs to group1,and now, we find that method1 belong to another group: group2.<p>
	 * This is not allowed.
	 */
	void checkDuplicateGroup(List<IThreadMethod> threadMethods, ThreadMethod threadMethod);
}
